revision:
The <tr> tag defines a row in an HTML table. The <tr> element contains one or more <th> or <td> elements. All the rows in a table contain an equal number of cells, which is equivalent to the number of cells in the longest row.
If there are fewer cells in a row, then the browser will automatically fill the row, placing empty cells at the end of it.
If you need to emphasize that there is no data in other cells, then create cells without content where necessary.
<tr> . . . </tr>
Month | Savings |
---|---|
January | $100 |
January | $80 |
<style> table, th, td {border: 1px solid black;margin-left: 4vw;} </style> <table> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>January</td> <td>$80</td> </tr> </table>
Month | Savings |
---|---|
January | $100 |
<table style="width:100%"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr style="text-align:right"> <td>January</td> <td>$100</td> </tr> </table>